package cn.iocoder.yudao.module.crm.controller.admin.robotcluetransrule.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.util.List;

@Schema(description = "管理后台 - 转化规则新增/修改 Request VO")
@Data
public class RobotClueTransRuleSaveReqVO {

    @Schema(description = "转化任务ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "18452")
    private Long id;

    @Schema(description = "任务")
    @NotNull(message = "任务不能为空")
    private List<TaskVO> taskList;

    @Data
    public static class TaskVO {

        @Schema(description = "任务ID")
        private Long id;

        @Schema(description = "任务ID")
        private String taskId;

        @Schema(description = "任务名称")
        private String name;
    }


    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;


//    @Schema(description = "执行间隔", requiredMode = Schema.RequiredMode.REQUIRED)
//    private Integer minInterval;

    @Schema(description = "转入位置", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "转入位置不能为空")
    private Integer transPos;

    @Schema(description = "所属模块", requiredMode = Schema.RequiredMode.REQUIRED, example = "9895")
    @NotNull(message = "所属模块不能为空")
    private Long moduleId;

    @Schema(description = "是否过发送模板消息")
    private Integer send;

    @Schema(description = "是否过自动添加微信")
    private Integer add;

    @Schema(description = "过滤重复的手机号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer filterRepeatMobile;

    @Schema(description = "等级id列表")
    private List<Long> level;
}